package com.wenwei.paper.utils;

import android.content.Context;

import com.wenwei.paper.base.Constant;
import com.wenwei.paper.bean.UserLoginBean;


/**
 * Created by Administrator on 2017/6/8.
 */
public class UserStringUtils {

    public static String getUserToken(Context mContext){
        UserLoginBean ub = RogerSPUtils.getObject(mContext, Constant.SP_USER_LOGIN_RESULT,UserLoginBean.class);
        if(ub!=null)
            return ub.getWwtoken();
        return "";
    }

    public static String getUserName(Context mContext){
        UserLoginBean ub = RogerSPUtils.getObject(mContext, Constant.SP_USER_LOGIN_RESULT,UserLoginBean.class);
        if(ub!=null)
            return ub.getPhone();
        return "";
    }

    public static String getUserId(Context mContext){
        UserLoginBean ub = RogerSPUtils.getObject(mContext, Constant.SP_USER_LOGIN_RESULT,UserLoginBean.class);
        if(ub!=null)
            return ub.getUser_id()+"";
        return "";
    }


}
